Skip to content

[SYCL][WIP] Extend select_device to take parameters #2241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

bso-intel
Copy link
Contributor

@bso-intel bso-intel commented Aug 2, 2020

This PR allows users to request a specific device of their choice,
in terms of device_type, backend, and device_num.
select_device now can take 3 OPTIONAL parameters for this purpose, so keeping backward compatibility.
When these 3 parameters are specified, the user can pin down a specific device on which they want to run a kernel.
A new env var SYCL_DEVICE_TRIPLES will also affect this api, and filters out unspecified devices.
If any device that can satisfy the parameters is not found, it will fall back to the default heuristic approach. (current implementation)

Signed-off-by: Byoungro So [email protected]

This PR allows users to request a specific device of their choice,
in terms of device_type, backend, and device_num.
select_device now can take 3 OPTIONAL parameters for this purpose.
When these 3 parameters are specified, the user can pin down a specific device on which they want to run a kernel.
SYCL_DEVICE_TRIPLE will also affect this api, and filters out unspecified devices.
If any device that can satisfy the paraemters, it will fall back to the default heuristic approach. (current implemantion)

Signed-off-by: Byoungro So <[email protected]>
@bso-intel bso-intel requested a review from a team as a code owner August 2, 2020 17:07
@bso-intel bso-intel requested a review from s-kanaev August 2, 2020 17:07
Signed-off-by: Byoungro So <[email protected]>
Signed-off-by: Byoungro So <[email protected]>
// Checks that only designated plugins are loaded when SYCL_DEVICE_TRIPLE is
// set. Checks that all different device types can be acquired from
// select_device()
// UNSUPPORTED: windows
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?
Will there be a dedicated test for windows platform?

@jbrodman
Copy link
Contributor

jbrodman commented Aug 3, 2020

Why are we changing the SYCL APIs? We should not do this.

@keryell
Copy link
Contributor

keryell commented Aug 3, 2020

The name TRIPLE sounds both vague and misleading to me. Could we have a better name?

@bso-intel bso-intel changed the title [SYCL] Extend select_device to take parameters [SYCL][WIP] Extend select_device to take parameters Aug 3, 2020
@jbrodman jbrodman self-requested a review August 16, 2020 23:58
@jbrodman
Copy link
Contributor

Please stop pursuing this path.

@bader
Copy link
Contributor

bader commented Oct 14, 2020

@bso-intel, should we close this PR?

@bso-intel
Copy link
Contributor Author

@bso-intel, should we close this PR?

Yes, I will have to open another PR for similar work later.

@bso-intel bso-intel closed this Oct 14, 2020
Chenyang-L pushed a commit that referenced this pull request Feb 18, 2025
[L0 v2] implement native APIs and urMemBufferPartition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants